home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 11⁄10⁄89 / 0034-Re TCellSelectComman-Nov89 < prev    next >
Encoding:
Text File  |  1989-11-10  |  1.2 KB  |  29 lines  |  [TEXT/GEOL]

  1. Item    4129613                         3-Nov-89        22:43
  2.  
  3. From:   PASCOE1                         Pascoe, Geoff
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Re: TCellSelectCommand Bug
  8.  
  9. Curtis,
  10.  
  11. Yeah, this seems to be a bug to me.  I think the proper fix would be to set
  12. fPrevSelection and fDifference to NIL before the call to ICommand.  That way,
  13. when the TCellSelectCommand is freed by a failure handler further up in the
  14. stack the regions will get freed also- but only if they were allocated in the
  15. first place, since we check for NIL before trying to free them.
  16.  
  17. One could set up a failure handler in ICellSelectCommand to catch the failures
  18. but it is unnecessary since the TCellSelectCommand will need to free the
  19. regions in TCellSelectCommand.Free anyway.  But, if you had assigned these
  20. regions to temporaries (i.e., the object proper did not have a handle to them)
  21. you would have to set up a failure handler since there is no way the Free
  22. method could free something it does not hold in instance variables.
  23.  
  24. I could be wrong on this, since it's been a while since I've put in failure
  25. handlers.  If someone else has a different perspective I'd like to here it.
  26.  
  27. Geoff
  28.  
  29.